package com.config;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ModelAttribute;

@ControllerAdvice
public class GlobalController {
    @ModelAttribute
    public void addGlobalData(Model model){
        model.addAttribute("contact","https://www.google.com");
        model.addAttribute("homeUrl","https://www.bing.com");

    }
}
